#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int a[N],n,b[N],i,w=1,m=1;
inline int read()
{
    int f=1,x=0;
    char ch=getchar();
    while(ch<'0'||ch>'9')
    {
        if(ch=='-') f=-1;
        ch=getchar();
    }
    while(ch>='0'&&ch<='9')
    {
        x=x*10+ch-'0';
        ch=getchar();
    }
    return f*x;
}
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    n=read();
    for(i=1;i<=n;i++)   a[i]=read();
    sort(a+1,a+1+n);
    for(i=1;i<=n;i++)
    {
        if(a[i]>a[m])
        {
            w++;
            m=i;
            b[w]=1;
        }
        else    b[w]++;
    }
    for(i=2;i<=w;i++)
        if(b[i]<b[i-1])
            b[i]=b[i-1];
    cout<<b[w]<<endl;
    return 0;
}
